package team.szm.scd.service.interfaces;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import team.szm.scd.database.entity.Topic;
import team.szm.scd.database.entity.TopicReply;

import java.time.LocalDateTime;

public interface ITopicService {
    boolean createTopic(Topic topic, LocalDateTime now);

    boolean replyTopic(TopicReply reply, LocalDateTime now);

    Page<Topic> getAllTopics(int pageNum, String searchInfo);

    Page<TopicReply> getAllReplies(int pageNum, String topicId);

    Topic fromId(String id);
}
